﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewsList.aspx.cs" Inherits="Crm_NewsList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link href="crm.css" rel="stylesheet" type="text/css" />  <script src="../js/jquery-1.2.6.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function()
        {
            var selobj = null;
            var selobjcolor = null;
            //d = this.style.backgroundColor; this.style.backgroundColor = '#D1F880';
            $(".trnei,.lupai").each(function()
            {
                $(this).click(function()
                {
                    try
                    {
                        selobj.css("background-color", selobjcolor);
                    }
                    catch (ex)
                    {
                    }
                    selobjcolor = $(this).css("background-color");
                    $(this).css("background-color", "#D1F880");
                    selobj = $(this);
                });
            });

        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="padding: 0 5px;">
        <div class="nav">
            当前位置：模板新闻</div>
        <div style="margin-bottom: 5px;">
            <asp:Button ID="btnAddNew" runat="server" Text="添加新闻" OnClick="btnAddNew_Click" /></div>
        <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" AllowPaging="True">
        </asp:GridView>
    </div>
    <%--<asp:SqlDataSource ID="" runat="server" ConnectionString="<%$ ConnectionStrings:strWeb %>" SelectCommand="SELECT a.*,b.sort_name FROM [News] a,NewsSorts b WHERE (a.sortId=b.sortId) ORDER BY [px] DESC" DeleteCommand="DELETE FROM [News] WHERE (newsId=@NewsId)">
        <SelectParameters>
            <asp:Parameter DefaultValue="0" Name="jb" Type="Int32" />
            <asp:Parameter DefaultValue="0" Name="pid" Type="Int32" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="NewsId" Type="Int32" />
        </DeleteParameters>
    </asp:SqlDataSource>--%>
    </form>
</body>
</html>
